package com.aitoedu.server.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Accessors(chain = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PreviewVO {

    @Schema(description = "预习内容id")
    private Long id;

    @Schema(description = "预习内容")
    private String content;

    @Schema(description = "内容创建日期")
    @JsonFormat(pattern = "yyyy.M.d HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @Schema(description = "预习状态(0为未预习，1为已预习")
    private Integer preStatus;

}
